package com.qww;

public class Exec14 {

    public static void main(String[] args) {
        compareTwoStr("asdf", "asdf");
        compareTwoStr("asd", "asdf");
    }

    public static void compareTwoStr(String s1, String s2) {
        System.out.println("" + s1 + " == " + s2 + ": " + (s1 == s2));
        System.out.println("" + s1 + " != " + s2 + ": " + (s1 != s2));
        System.out.println("" + s1 + ".equals(" + s2 + "): " + (s1.equals(s2)));
    }
}
